<?php
/* @var $this ScheduleController */
/* @var $model Schedule */


$this->menu=array(
	//array('label'=>'List Schedule', 'url'=>array('index')),
	array('label'=>'Create Schedule', 'url'=>array('create')),
);

?>

<br>
<p>
<?php $this->widget('zii.widgets.grid.CGridView', array(
  'id' => $grid_id,
  'dataProvider' => $scheduleActiveDataProvider,
	'enableSorting' => false,
  'columns' => array(
		'idschedule',
		array(
			'name'=>'team_id',
			'header'=>'Team',
			'value'=>'$data->team_relation->short_name;',
			'htmlOptions' => array(
								'style' => 'width:80px;text-align:center;',
							 ),
		),			
		array(
			'name'=>'idshift',
			'header'=>'Shift',
			'value'=>'$data->shift_relation->name;',
			'htmlOptions' => array(
								'style' => 'width:80px;text-align:center;',
							 ),
		),	
		array(
			'name'=>'idqshift',
			'header'=>'Q-Shift',
			'value'=>'$data->qshift_relation->name;',
			'htmlOptions' => array(
								'style' => 'width:80px;text-align:center;',
							 ),
		),			
		array(
			'name'=>'idweekday',
			'header'=>'Weekday',
			'value'=>'$data->weekday_relation->name;',
			'htmlOptions' => array(
								'style' => 'width:80px;text-align:center;',
							 ),
		),				
		array(
			'class'=>'CButtonColumn',
		),		
  ),
));
 ?>